package com.showgood.beans.task;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.showgood.beans.proxy.FightProxy;

@Component
public class FightTask implements SangoTask {
	private Logger logger = Logger.getLogger(getClass());
	@Autowired
	private FightProxy fightProxy;
	@Override
	public void action() {
		long t = System.currentTimeMillis();
		fightProxy.fight();
		// logger.info("FIGHT TASK DONE COST: " + (System.currentTimeMillis()-t));
	}
}
